//
//  QueryViewController.h
//  Rich
//
//  Created by Kenny Chen on 13/8/29.
//  Copyright (c) 2013年 Kenny Chen. All rights reserved.
//

#import "RichCore.h"
#import "RichUI.h"
#import "ExpendViewController.h"
#import "IncomeViewController.h"
#import "TransferViewController.h"

typedef enum {
    ByDay = 0,
    ByMonth,
} DateCondition;

@interface QueryViewController : RichTableViewController
{
    DateCondition          dateCondition;
    NSDate *               beginDate;
    NSDate *               endDate;
    FormatableDatePicker * beginDatePicker;
    FormatableDatePicker * endDatePicker;
}

@property (nonatomic, retain) NSMutableArray *  queryTransactions;
@property (nonatomic, retain) NSString *        defaultQueryCondition;

- (void)loadTransactions:(NSMutableArray *)transactions condition:(NSString *)condition;

@end
